package com.example.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 
 * @TableName room
 */
@TableName(value ="room")
@Data
public class Room implements Serializable {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 房间名称
     */
    private String name;

    /**
     * 房间容量
     */
    private Integer capacity;

    /**
     * 所属图书馆ID
     */
    private Long libraryId;

    /**
     * 0:关闭, 1:开放, 2:维修
     */
    private Integer roomStatus;

    /**
     * 0:教室, 1:自习室
     */
    private Integer roomType;

    /**
     * 设备配置
     */
    private String equipmentConfig;

    /**
     * 设施配置
     */
    private String facilityConfig;

    private String map;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}